package com.swx.identityservice.dtos.scbpuser;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Email;

import javax.persistence.Column;

@Data
@ApiModel("新增用户Dto")
public class InsertUserInputDto {

    @ApiModelProperty(value="用户名",example = "波波")
//    @NotEmpty(message = "不能为空")
    private String username;


    @ApiModelProperty(value="登录别名",example = "小波波")
//    @NotEmpty(message = "不能为空")
    private String account;

    @ApiModelProperty(value = "角色集合",example = "[2,3,4]")
    @Column(name = "RoleIds")
    private Integer[] roleids;

    @ApiModelProperty(value = "联系电话",example = "13800138000")
    private String phonenumber;

    @ApiModelProperty(value = "邮箱",example = "someday@163.com")
    @Email
    private String email;

    @ApiModelProperty(value = "部门集合",example = "[1,2,3]")
    @Column(name = "DeptIds")
    private Integer[] deptids;

    @ApiModelProperty(value = "身份证、军官证号码",example = "511011199508088888")
//    @NotEmpty(message = "不能为空")
    private String idnumber;

    @ApiModelProperty(value = "是否是正式员工",example = "true")
    private Boolean isinformal;

    @ApiModelProperty(value = "工作证号",example = "8765432112345678")
//    @NotEmpty(message = "不能为空")
    private String worknum;

}
